@charset "utf-8";
@import "reset";
@import "common";
//处理px单位的值，转换为rem单位
@function r($px) {
    @return $px/100px*1rem;
}

body {
    .index {
        font-size: 12px;
        a {
            color: black;
        }
        /*头部导航栏*/
        header {
            color: white;
            height: 44.5px;
            background-color: #b20000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 r(16px);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 2;
            .caidanlan {
                //              background-color: green;
                width: r(60px);
                height: r(60px);
                line-height: r(60px);
                position: relative;
                .message {
                    width: r(28px);
                    height: r(28px);
                    text-align: center;
                    line-height: r(28px);
                    border-radius: 50%;
                    background-color: #ff0000;
                    position: absolute;
                    top: 0;
                    left: r(20px);
                    a {
                        font-size: 11px;
                        color: white;
                    }
                }
            }
            >img {
                width: r(264px);
                height: 20px;
            }
            >img:last-of-type {
                width: 0.3rem;
            }
        }
        .content {
            margin-top: 44.5px;
            background-color: #f5f5f5;
            /*轮播图*/
            .slideshow {
                font-size: 0;
                position: relative;
                a {
                    width: 100%;
                    >img {
                        width: 100%;
                    }
                }
                .slideshow-text {
                    width: 100%;
                    height: 33.33%;
                    font-size: 13px;
                    color: white;
                    background-color: rgba(0, 0, 0, 0.5);
                    position: absolute;
                    bottom: 0;
                    padding: r(20px) r(30px) r(24px);                   
                    .slideshow-title{
                        h3 { 
                            font-size: 13px;
                            margin-bottom: r(12px);
                        }                       
                    }
                    .date{
                        span{
                            font-size: 10px;
                            &:first-of-type{
                                margin-right: r(29px);
                            }
                            a{
                                color: white;
                            }
                            img{
                                width: 0.25rem;
                                vertical-align: bottom;
                            }
                        }
                    }
                }
            }
            
            /*课程列表*/
           .curriculum-list{                         
               .curList{
                   margin-bottom: 60px;
                   li{
                       background-color: white;
                       margin-top: r(25px);
                       padding: r(23px) r(29px) r(26px);
                       .curList-title{
                           display: flex;
                           justify-content: space-between;
                           font-size: 0;
                           .curList-title-left{
                               display: flex;
                               justify-content: flex-start;
                               color: #C5C5C5;                               
                               img{
                                   width: r(58px);
                                   margin-right: r(17px);
                               }
                               .curList-title-text{                                  
                                   padding-top: r(6px);
                                   h3{
                                       font-size: 11px;
                                   }
                                   p{
                                       font-size: 8px;
                                   }
                               }
                           }
                           .curList-title-right{
                               width: r(228px);
                               height: r(58px);
                               font-size: 14px;
                               line-height: r(58px);
                               text-align: center;
                               background-color: #B20000;
                               a{
                                   color: white;
                                   img{
                                       width: 0.25rem;
                                   }
                               }
                           }
                       }
                       >p{
                           font-size: 12px;
                           line-height: r(42px);
                           border-bottom: #C5C5C5 solid 1px;
                           margin: r(4px) 0 r(17px);
                           display: flex;
                           justify-content: space-between;
                       }
                       .curList-img{
                           font-size: 0;
                           width: 100%;
                           img{
                               width: 100%;
                           }
                       }
                   }
               }
           }
        }
        /*底部导航栏*/
        footer {
            border-top: #C5C5C5 solid 1px;
            position: fixed;
            bottom: 0;
            width: 100%;
            ul {
                height: 60px;
                display: flex;
                justify-content: space-around;
                background-color: #f5f5f5;
                text-align: center;
                padding: 12px 0;
                li {
                    width: 20%;
                    color: #C5C5C5;
                    border-right: #C5C5C5 solid 1px;
                    &:last-of-type {
                        border-right: 0;
                    }
                    img {
                        width: 0.5rem;
                    }
                    a {
                        color: #C5C5C5;
                        &:hover{
                           color: #B20000; 
                        }
                    }
                }
                .active {
                    a {
                        color: #B20000;
                    }
                }
            }
        }
    }
}